package com.ruibang.glass.produce.controller.pl;

import com.ruibang.glass.produce.domain.req.JobReportReq;
import com.ruibang.glass.produce.domain.resp.JobReportResp;
import com.ruibang.glass.produce.service.JobReportService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-05-07  10:59
 * @Description: TODO
 * @Version: 1.0
 */

@Api(tags = "生产-配料-作业报表")
@RestController
@RequestMapping("/api/glass/produce/pl/jobReport")
public class JobReportController {

    @Autowired
    private JobReportService jobReportService;

    @PostMapping("getReportInfo")
    @ApiOperation(value = "配料作业报表", notes = "配料作业报表")
    public ResultBody<JobReportResp> getReportInfo(@RequestBody JobReportReq jobReportReq) {
        return ResultBody.success(jobReportService.getReportInfo(jobReportReq));
    }
}
